package com.cooud.order.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2025/03/15/13:21
 * @Description:
 */

@Data
@Component
@ConfigurationProperties(prefix = "order")  // 配置文件中前缀为order的属性
public class OrderProperties {
    String timeout; // 需要和配置文件中的属性名一致
    String autoConfirm;
    String dbUrl;
}
